tools/xenconsoled: Increase file descriptor limit
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Mar 2015 15:04:37 +0000 (15:04 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Mar 2015 16:26:47 +0000 (16:26 +0000)
commit588df84c0d702e835e526ecef3af6c5444857558
tree5da952382ed6910c984d04f10b7eecb04b7fe723
parent713559895bd0b5bf8734c0cb59558966155621e1
tools/xenconsoled: Increase file descriptor limit

XenServer's VM density testing uncovered a regression when moving from
sysvinit to systemd where the file descriptor limit dropped from 4096 to
1024. (XenServer had previously inserted a ulimit statement into its
initscripts.)

One solution is to use LimitNOFILE=4096 in xenconsoled.service to match the
lost ulimit, but that is only a stopgap solution.

As Xenconsoled genuinely needs a large number of file descriptors if a large
number of domains are running, attempt to increase the limit.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/console/daemon/main.c